import axios, { Axios } from 'axios'
const context = '/deviceservice'

/**
 * 获取 FdsMaterialDischargeRuleset 分页列表
 */
export function getFdsMaterialDischargeRulesetPagination(data: any) {
  return axios.get(`${context}/fdsMaterialDischargeRuleset/pagination`, {
    params: data,
  })
}

/**
 * 获取 FdsMaterialDischargeRuleset 所有数据
 */
export function getFdsMaterialDischargeRulesetAllList(data: any) {
  return axios.get(`${context}/fdsMaterialDischargeRuleset/allList`, {
    params: data,
  })
}

/**
 * 获取 FdsMaterialDischargeRuleset 详情
 */
export function getFdsMaterialDischargeRulesetDetailById(id: any) {
  return axios.get(`${context}/fdsMaterialDischargeRuleset/${id}`, {
    params: { id },
  })
}

/**
 * 新增 FdsMaterialDischargeRuleset
 */
export function addFdsMaterialDischargeRuleset(data: any) {
  return axios.post(`${context}/fdsMaterialDischargeRuleset`, data)
}

/**
 * 修改 FdsMaterialDischargeRuleset
 */
export function updateFdsMaterialDischargeRuleset(data: any) {
  return axios.put(`${context}/fdsMaterialDischargeRuleset`, data)
}

/**
 * 删除 FdsMaterialDischargeRuleset
 */
export function batchRemoveFdsMaterialDischargeRuleset(data: any) {
  return axios.post(`${context}/fdsMaterialDischargeRuleset/batchRemove`, data)
}
